package com.topisv.tms.repository.stock.check;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.topisv.tms.entity.stock.check.CheckPlanSetting;

public abstract interface CheckPlanSettingDao extends PagingAndSortingRepository<CheckPlanSetting, Long>, JpaSpecificationExecutor<CheckPlanSetting>
{

	@Query("select t from CheckPlanSetting t where day=?")
	List<CheckPlanSetting> loadByDay(int day);
	
	@Query("select t from CheckPlanSetting t where customerCode=?")
	List<CheckPlanSetting> loadByCustomerCode(String custCode);

}